body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background: #34495e;
}
main {
  width: 500px;
  height: 500px;
  //   border: solid 2px #ddd;
  display: grid;
  justify-content: center;
  align-content: center;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateY(45deg) rotateX(45deg);
  div {
    width: 300px;
    height: 50px;
    background-color: #e74c3c;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    color: #e74c3c;
    text-shadow: 3px 3px 3px rgba(#000000, 1);
    &::before {
      content: '';
      position: absolute;
      left: 0;
      display: block;
      width: 10px;
      height: 100%;
      background-color: #000;
      transform: skewY(-45deg) translateX(-10px) translateY(-5px);
    }
    &::after {
      content: '';
      position: absolute;
      display: block;
      width: 100%;
      height: 10px;
      bottom: -10px;
      background-color: #000;
      transform: skewX(-45deg) translateX(-5px);
    }
  }
}
